// eslint-disable-next-line import/no-extraneous-dependencies
import mockjs from 'mockjs';

export default {
  'POST /api/label/add': (req, res) => {
    res.send(
      mockjs.mock(
        {
          ret: 0,
          error: null
        }
      ),
    );
  },
  'POST /api/label/list': (req, res) => {
    res.send(
      mockjs.mock(
        {
          ret: 0,
          data: {
            list: [
              {
                id: 1,
                labName: "食材",
                labOption: "无香精，无色素，无防腐剂，新西兰进口"
              },
              {
                id: 2,
                labName: "特别配料",
                labOption: "时令水果，鲜牛乳，芒果，智利车厘子，梦龙"
              },
              {
                id: 3,
                labName: "外观",
                labOption: "高颜值，雪顶，奶盖，雪克，冰沙"
              }, {
                id: 4,
                labName: "节日主题",
                labOption: "情人节，儿童节，圣诞节，中秋节"
              }, {
                id: 5,
                labName: "制作耗时",
                labOption: "20s,40s,1min"
              }
            ],
            total: 4,
            query: 4
          },
          error: null
        }
      ),
    );
  },
}
